package com.lzw.zuoye01;

public class Cylinder extends Circle{
    private double length;//圆柱的长度
    public Cylinder(){
        this.length = 1;
    }

    public void setLength(double length) {
        this.length = length;
    }//设置长度
    public Double getLength(){
        return length;
    }//获得长度
    public double findVolume() {
        return findArea() * length;
    }// 使用父类的findArea方法计算底面积
}
